﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Module.Roles;
using Framework;
using Domain.Module.Entities;
using Framework.DCI;
using Domain.Module.Events;

namespace Domain.Roles
{
    class BeCommented : Role<Item>, IBeCommented
    {
        #region IBeCommented Members

        public BeCommented(Item actor)
            : base(actor)
        {

        }

        public void AddComment(Module.Entities.Comment comment)
        {
            _actor.Comments.Add(comment);
            comment.Type = _actor.CommonType.ToString();
            _actor.BeCommented(comment);
        }

        #endregion
    }
}
